<%@ Page Language="VB" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="false" MaintainScrollPositionOnPostback="true" CodeFile="appSourceOfEnrollment.aspx.vb" Inherits="Admin_appSourceOfEnrollment" title="Admin - SourceOfEnrollment Settings" %>
<%@ Register Assembly="InputControls" Namespace="InputControls" TagPrefix="cc2" %>

<%@ Register Src="SubNavControls/DropdownSubNavControl.ascx" TagName="DropDownSubNavControl" TagPrefix="uc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder2">
    <uc1:DropDownSubNavControl ID="DropDownSubNavControl1" runat="server" />
 <asp:ObjectDataSource ID="SourceOfEnrollmentsObjectDataSource" DataObjectTypeName="Cdm.DataCore.LookupTables.LuSourceOfEnrollment" TypeName="Cdm.DataCore.LookupTables.LuSourceOfEnrollment" SelectMethod="ListBySort"
     UpdateMethod="UpdateInstance" InsertMethod="SaveInstance" DeleteMethod="RemoveInstance" SortParameterName="sortExpr" runat="server"></asp:ObjectDataSource>
<table><tr><td>   
<div id="PageDiv" style="left:20px; top:20px; width:944px;">
<span style="position:relative; left:0px; top:0px; font-family:MS Sans Serif, Arial, Verdana, Sans-Serif; font-size: 1em; font-weight:bold; color:#21334B;">
    <h1><a id="pagecontent">Admin - Source Of Enrollment Settings</a></h1></span>
        <cc2:ValidationErrorSummary ID="ErrorSummary" runat="server" Message="" Visible="false" />
        <asp:UpdatePanel Id="UpdatePanel1" runat="server">
        <ContentTemplate>
        <cc2:ScrollingGridView ID="SourceOfEnrollmentsScrollingGridView" ToolTip="150" runat="server" CssClass="gridOffsetSmall" HorizontalAlign="Center" IsFixedColumn="true" CellSpacing="0" CellPadding="5" 
            AutoGenerateColumns="False" DataSourceID="SourceOfEnrollmentsObjectDataSource" BorderColor="#21334B" 
            BorderStyle="Solid" GridLines="Vertical" AllowSorting="True" DataKeyNames="SourceOfEnrollmentId">
        <HeaderStyle CssClass="adminHeaderStyle" BackColor="#C3CAD4" BorderColor="#21334B" VerticalAlign="Top" />
        <RowStyle CssClass="adminColumnStyle" />
            <Columns>
                <asp:TemplateField HeaderText="Source Of Enrollment" SortExpression="Description">
                    <ItemTemplate><%#Eval("Description")%></ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="SourceOfEnrollmentTextBox" runat="server" Text='<%# Bind("Description") %>' ToolTip="edit description"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemStyle Width="350px" />
                    <HeaderStyle Width="356px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Maximum Age" SortExpression="MaximumAge">
                    <ItemTemplate><%#Eval("MaximumAge")%></ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="MaximumAgeTextBox" runat="server" Width="50px" Text='<%# Bind("MaximumAge") %>' ToolTip="edit maximum age"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="150px" />
                    <HeaderStyle Width="150px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Number of Enrollees" SortExpression="NumberOfEnrollees">
                    <ItemTemplate><%#Eval("NumberOfEnrollees")%></ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="NumberOfEnrolleesTextBox" runat="server" Width="50px" Text='<%# Bind("NumberOfEnrollees") %>' ToolTip="edit number of enrollees"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="150px" />
                    <HeaderStyle Width="150px" />
                </asp:TemplateField>
                <asp:CommandField ShowEditButton="True" HeaderText="Action" AccessibleHeaderText="Action">
                    <ItemStyle HorizontalAlign="Center" Width="125px"  />
                    <HeaderStyle Width="155px" />
                </asp:CommandField>
            </Columns>
        <AlternatingRowStyle BackColor="#E8ECF4" />
        </cc2:ScrollingGridView>
        </ContentTemplate>
        </asp:UpdatePanel>
        </div>
 </td></tr>
 <tr><td>
        <asp:DetailsView ID="SourceOfEnrollmentsDetailsView" runat="server" CssClass="gridOffset" 
            Width="825px" AutoGenerateRows="False" DataSourceID="SourceOfEnrollmentsObjectDataSource" 
            DefaultMode="Insert" GridLines="None" Visible="False">
            <Fields>
                <asp:TemplateField>
                    <InsertItemTemplate>
                        <table border="0" cellpadding="3" cellspacing="0">
                            <tr>
                                <td align="right"><asp:Label ID="SourceOfEnrollmentLabel" runat="server" Text="Source Of Enrollment Name:" CssClass="adminLabel"></asp:Label></td>
                                <td><asp:TextBox ID="SourceOfEnrollmentDetailsTextBox" runat="server" CssClass="text"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td align="right"><asp:Label ID="MaximumAgeLabel" runat="server" Text="Maximum Age:" CssClass="adminLabel"></asp:Label></td>
                                <td><asp:TextBox ID="MaximumAgeDetailsTextBox" runat="server" Width="60px" CssClass="text"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td align="right"><asp:Label ID="NumberOfEnrolleesLabel" runat="server" Text="Number of Enrollees:" CssClass="adminLabel"></asp:Label></td>
                                <td><asp:TextBox ID="NumberOfEnrolleesDetailsTextBox" runat="server" Width="60px" CssClass="text"></asp:TextBox></td>
                            </tr>
                        </table>
                    </InsertItemTemplate>
                </asp:TemplateField>
            </Fields>
        </asp:DetailsView>
 
 </td></tr>
 </table>
       
</asp:Content>
<asp:Content ContentPlaceHolderID="ContentPlaceHolderFixedAdmin" runat="server" ID="ContentPlaceHolderFixed">
         <center><asp:Button ID="SourceOfEnrollmentAddButton" runat="server" Text="Add Source Of Enrollment" />
                 <asp:Button ID="SubmitButton" runat="server" Text="Submit" Visible="false" />
                 <asp:Button ID="CancelButton" runat="server" Text="Cancel" Visible="false"/>   
         </center>
</asp:Content>

